package com.lzl.remote;

import com.lzl.dto.PassengerUser;
import com.lzl.responese.NumberCodeResponese;
import com.lzl.responese.ResponseResult;
import com.lzl.request.VerificationCodeDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

/**
 * //TODO
 *
 * @author zhaolinlin
 * @description //TODO
 * @createTime 2022/8/2 22:42
 */

@FeignClient("service-passenger-user")
public interface ServicePassengerUserClient {

    @RequestMapping(method = RequestMethod.POST,value = "/user")
    ResponseResult loginOrRegister(@RequestBody VerificationCodeDTO verificationCodeDTO);

    @RequestMapping(method = RequestMethod.GET,value = "/users/{phone}")
    ResponseResult<PassengerUser> getUserByPhone(@PathVariable("phone") String phone);



}
